import request from "@/utils/request"
export function addCourse(data) {
  return request({
    method: 'POST',
    url: '/course/addcourse',
    data
  })
}
export function getCourse() {
  return request({
    method: 'GET',
    url: '/course/getcourse'
  })
}
export function updateCourse(data) {
  return request({
    method: 'POST',
    url: '/course/updatecourse',
    data
  })
}
export function deleteCourse(data) {
  return request({
    method: 'POST',
    url: '/course/deletecourse',
    data
  })
}